package net.lab1024.sa.admin.module.business.template.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.template.domain.entity.QuotationTemplateItemsEntity;
import net.lab1024.sa.admin.module.business.template.domain.form.QuotationTemplateItemsQueryForm;
import net.lab1024.sa.admin.module.business.template.domain.vo.QuotationTemplateItemsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 报价单模板明细 Dao
 *
 * @Author zzx
 * @Date 2025-08-06 11:06:59
 * @Copyright zzx
 */

@Mapper
public interface QuotationTemplateItemsDao extends BaseMapper<QuotationTemplateItemsEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<QuotationTemplateItemsVO> queryPage(Page page, @Param("queryForm") QuotationTemplateItemsQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("templateOrderId")Long templateOrderId,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Long> idList,@Param("deletedFlag")boolean deletedFlag);

}
